package com.example.lvsuo.service.impl;

import com.example.lvsuo.entity.vo.RecordDocumentVo;
import com.example.lvsuo.service.IRecordDocumentService;
import com.example.lvsuo.entity.RecordDocument;
import com.example.lvsuo.mapper.RecordDocumentMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 收入凭单表 服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class RecordDocumentServiceImpl extends ServiceImpl<RecordDocumentMapper, RecordDocument> implements IRecordDocumentService {
    @Autowired
    RecordDocumentMapper recordDocumentMapper;

    /**
     * 高级查询+分页
     * @param recordDocumentVo
     * @return
     */
    @Override
    public List<RecordDocumentVo> getRecordDocument(RecordDocumentVo recordDocumentVo) {
        return recordDocumentMapper.getRecordDocument(recordDocumentVo);
    }

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    @Override
    public List<RecordDocumentVo> getRecordDocumentId(String id) {
        return recordDocumentMapper.getRecordDocumentId(id);
    }

    /**
     * 高级查询+分页+当前登录者
     * @param recordDocumentVo
     * @return
     */
    @Override
    public List<RecordDocumentVo> getRecordDocumentName(RecordDocumentVo recordDocumentVo) {
        return recordDocumentMapper.getRecordDocumentName(recordDocumentVo);
    }
}
